Improve intra-target parallelism
authorAlex Crichton <alex@alexcrichton.com>
Fri, 11 Jul 2014 14:50:24 +0000 (07:50 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 11 Jul 2014 14:50:24 +0000 (07:50 -0700)
commit2bcf29263d95c7792285d9d4a510e23e2b96f350
tree86ff42d5e1db501609e1e54045bc603ab6706637
parent1bb35578cce84d85d8b0c0f9603c6c9c4c3c9787
Improve intra-target parallelism

With cross compilation soon on the horizon, it may be required to build a
library for both the host and target architectures. These two copies can
certainly be built in parallel. Additionally, all binaries produced by a package
can also be built in parallel, but are currently forced to be built
sequentially.

This commit improves this parallelism by allowing each job to create more work
before the package is considered built. Only after all targets have been built
is the new fingerprint written.
src/cargo/ops/cargo_rustc.rs